package com.tang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.tang.pojo.Books;
import com.tang.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Mapper
@Component
public interface UserMapper extends BaseMapper<User> {
    //增加用户
    @Insert("insert into user(username, password) values (#{username},#{password});")
    int addUser(User user);
}
